package com.soft.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

@Controller
public class TestController {

    @RequestMapping("/test")
    public String  test(Model model){
        model.addAttribute( "name","<h1>Hello test</h1>" );
        model.addAttribute( "users", Arrays.asList( "user1", "user2" ) );
        return "test";
    }
//    @RequestMapping({"/index", "/"})
//    public String  index(Model model){
//        return "index";
//    }
}
